File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -3176,7 +3176,7 @@ <h1>ToBoolean ( _argument_ )</h1>
3176
3176
Object
3177
3177
</td>
3178
3178
<td>
3179
- Return *true*.
3179
+ Return *false* if _argument_ is an undectable object otherwise return * true*.
3180
3180
</td>
3181
3181
</tr>
3182
3182
</tbody>
@@ -4072,8 +4072,8 @@ <h1>Abstract Equality Comparison</h1>
4072
4072
<emu-alg>
4073
4073
1. If Type(_x_) is the same as Type(_y_), then
4074
4074
1. Return the result of performing Strict Equality Comparison _x_ === _y_.
4075
- 1. If _x_ is *null* and _y_ is *undefined*, return *true*.
4076
- 1. If _x_ is *undefined* and _y_ is *null*, return *true*.
4075
+ 1. If _x_ is *null* or *undefined* and _y_ is *undefined* or an undectable object , return *true*.
4076
+ 1. If _x_ is *undefined* or an undectable object and _y_ is *null* or *undefined *, return *true*.
4077
4077
1. If Type(_x_) is Number and Type(_y_) is String, return the result of the comparison _x_ == ToNumber(_y_).
4078
4078
1. If Type(_x_) is String and Type(_y_) is Number, return the result of the comparison ToNumber(_x_) == _y_.
4079
4079
1. If Type(_x_) is Boolean, return the result of the comparison ToNumber(_x_) == _y_.
@@ -12464,6 +12464,14 @@ <h1>Runtime Semantics: Evaluation</h1>
12464
12464
`"function"`
12465
12465
</td>
12466
12466
</tr>
12467
+ <tr>
12468
+ <td>
12469
+ Object (an undetectable object)
12470
+ </td>
12471
+ <td>
12472
+ `"undefined"`
12473
+ </td>
12474
+ </tr>
12467
12475
<tr>
12468
12476
<td>
12469
12477
Object (non-standard exotic and does not implement [[Call]])
You can’t perform that action at this time.
0 commit comments